<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>管理员列表</title>
    <script type="text/javascript" src="js/jquery.js"></script>
    <script type="text/javascript" src="js/common.js"></script>
    <link media="all" href="/admin/css/style.css" type=text/css rel="stylesheet">
</head>
<body>

<div class="container">
    <div class="hastabmenu">

        <ul class="tabmenu">
            <li id="adduserbtn" class="tabcurrent"><a href="#" >搜索课程</a></li>
        </ul>
        <div id="adduserdiv" class="tabcontentcur">
            <form action="/front/course/list" method="post">
                <table width="100%">
                    <tbody>
                    <tr>
                        <td>请输入关键字:</td>
                        <td><input name="search" class="txt" type="text"></td>
                        <td><input value="搜索" class="btn" type="submit"></td>
                    </tr>
                    </tbody>
                </table>
            </form>
            <div>
    </div>
    <br>
    <h3>课程列表</h3>
    <div class="mainbox">
        <form action="/front/course/delete" method="post">
            <table class="datalist fixwidth">
                <tbody>
                <tr>
                    <th>
                        <input name="chkall" id="chkall" class="checkbox" type="checkbox"><label for="chkall">删除</label>
                    </th>
                    <th>课程编号</th>
                    <th>课程名</th>
                    <th>添加时间</th>
                    <th>编辑</th>
                </tr>
                <?php foreach ($data as $row) {;?>
                    <tr>
                        <td class="option">
                            <input name="delete" value="<?=$row['id'];?>" class="checkbox" type="checkbox">
                        </td>
                        <td><strong><?=$row['id'];?></strong></td>
                        <td><?=$row['courseName'];?></td>
                        <td><?=date('Y-m-d', $row['time']);?></td>
                        <td><a href="/front/course/edit?id=<?=$row['id'];?>">编辑</a></td>
                    </tr>
                <?php }
;?>

                <tr class="nobg">
                    <td><input value="提 交" class="btn" type="submit"></td>
                    <td class="tdpage" colspan="6">
                        <div class="pages">
                            <em>100</em>
                            <strong>1</strong>
                            <a href="">2</a>
                            <a href="">3</a>
                            <a href="">4</a>
                            <a href="" class="next">&rsaquo;&rsaquo;</a>
                            <a href="" class="last">... </a>
                            <kbd><input type="text" name="custompage" size="3" onkeydown="if(event.keyCode==13) {window.location='?page='+this.value; return false;}" /></kbd>
                        </div>
                    </td>
                </tr>
                </tbody>
            </table>
        </form>
    </div>
</div>
</body>
</html>
